package com.study.zouchao.superproject.homepage.model.impl;

import android.content.Context;

import com.study.zouchao.superproject.base_zou.cache.AdPicCacheUtil;
import com.study.zouchao.superproject.homepage.model.result.entity.BaiduAdResult;
import com.study.zouchao.superproject.util.LogLongUtil;

import java.util.List;


/**
 * Created by Administrator on 2017/5/18.
 */

public class AdCacheModel {
    public void save2SharePre(Context context, List<String> data) {
        AdPicCacheUtil.saveAdPics(context, data);
    }
    public List<String> listAdPics(Context context) {
        return AdPicCacheUtil.getAdPicsCacheByList(context);
    }


    /*
     * Baidu
     */
    public void saveBaiduAd2SharePre(Context context, List<BaiduAdResult.DataBean.NewsBean> data) {
        AdPicCacheUtil.saveBaiduAdPics(context, data);
    }

    public List<BaiduAdResult.DataBean.NewsBean> listBaiduAdPics(Context context) {

        return AdPicCacheUtil.getBaiduAdPicsCacheByList(context);
    }
}
